<template>
  <div class="home">
    <el-card>
      <h1>欢迎来到员工工资管理系统</h1>
      <p>这里您可以管理员工信息，查看工资详情，查看假期详情以及提交假期申请。</p>
      <el-row type="flex" justify="center" class="home-buttons">
        <el-button type="primary" @click="navigateTo('/leave-application')">提交请假申请</el-button>
        <el-button type="success" @click="navigateTo('/employees')">查看员工列表</el-button>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Home',
  methods: {
    navigateTo(path) {
      this.$router.push(path);
    }
  }
};
</script>

<style scoped>
.header-title {
  color: #409EFF;
  margin: 0 0 20px 0;
  font-size: 32px; /* 放大标题 */
  text-align: center;
  border-bottom: 2px solid #409EFF; /* 添加底部边框 */
  padding-bottom: 10px; /* 添加内边距 */
}
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}
.home-buttons {
  margin-top: 20px;
}
</style>

